﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;



/// <summary>
/// Summary description for laylaimatkhau
/// </summary>
public class laylaimatkhau : dataset
{	
		 public bool KIEMTRAUSER(string TenDN, string Email)
    {
        string sql = "select * from Nguoi_Dung where UserName='" + TenDN + "' and Email='" + Email + "'";
        if (OPENDATASET(sql).Tables[0].Rows.Count == 1)
            return true;
        else
            return false;
    }
    public bool UPDATE_PASS(string TenDN, string PassMoi)
    {      
        string sql = "update Nguoi_Dung set Pass='" + PassMoi + "' where UserName='" + TenDN + "'";
        return EXECUTE_SQL(sql);
    }    
}
